import java.util.Scanner
import kotlin.math.max
var scanner=Scanner(System.`in`)
fun main(){
    var a=scanner.nextLine()
    var b=scanner.nextLine()
    val c=bigAdd(a,b)
    println(c)
}
fun bigAdd(a:String,b:String):String{
    var result:String
    var a1=a
    var b1=b
    var count=0
    result=""
    for (i in a1){
        if(i=='.'){
            count++
        }
    }
    if(count==0){
        a1=a1+"."
    }else if(count!=0&&count!=1){
        return "输入错误请重新输入"
    }
    count=0
    for (i in b1){
        if(i=='.'){
            count++
        }
    }
    if(count==0){
        b1=b1+"."
    }else if(count!=0&&count!=1){
        return "输入错误请重新输入"
    }
    var counta_left=0
    var counta_right=0
    var ys=0
    for(i in 0 until a1.length)
    {
        if(a1[i]=='.')
        {
            ys=1
        }else if (ys==0){
            counta_left++
        }else if(ys==1){
            counta_right++
        }
    }
    var countb_left=0
    var countb_right=0
    ys=0
    for(i in 0 until b1.length)
    {
        if(b1[i]=='.')
        {
            ys=1
        }else if (ys==0){
            countb_left++
        }else if(ys==1){
            countb_right++
        }
    }
    var count_left=max(counta_left,countb_left)
    var count_right=max(counta_right,countb_right)
    var left=""
    var right=""
    for (i in 0 until max(count_left-counta_left,count_left-countb_left))
    {
        left=left+"0"
    }
    for (i in 0 until max(count_right-counta_right,count_right-countb_right))
    {
        right=right+"0"
    }
    if(counta_left>countb_left){
        b1=left+b1
    }else{
        a1=left+a1
    }
    if(counta_right>countb_right){
        b1=b1+right
    }else{
        a1=a1+right
    }
    a1="0"+a1
    b1="0"+b1
    var di=0
    for(i in a1.length-1 downTo 1){
        if(a1[i]=='.'){ }else{
            val ai=a1[i].toInt()-48
            val bi=b1[i].toInt()-48
            val ci=(ai+bi+di)%10
            if(a1[i-1]=='.'){
                result=ci.toString()+result
                result='.'+result
            }else{
                result=ci.toString()+result
            }
            di=(ai+bi)/10
        }
    }
    if(di==1){
        result="1"+result
    }
    while (result.isNotEmpty() && result[result.length - 1] == '0') {
        result = result.substring(0, result.length - 1)
    }
    if (result.isNotEmpty() && result[result.length - 1] == '.') {
        result = result.substring(0, result.length - 1)
    }
    while (result.isNotEmpty() && result[0] == '0') {
        result = result.substring(1)
    }
    if (result.isEmpty() || result == ".") {
        result = "0"
    }
    return result
}
fun minus(a:String,b:String):String{
    var result:String
    result=""
    return result
}